<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/base/taglibs.jsp"%>
<%@include file="/WEB-INF/jsp/base/head.jsp"%> 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>餐厅菜单列表</title>
</head>
<body>
	<s:form id="form1" namespace="/restaurantMenu" action="restaurantMenuAction!getRestaurantMenus" name="form1" method="post">
	
	<input type="hidden" name="restaurantMenuBizBean.rid" value="${restaurantMenuBizBean.rid}" />
	
	<input type="hidden" id="addURL"  value="restaurantMenuAction!getRestaurantMenuAdd.do"/>
	<input type="hidden" id="delURL"  value="restaurantMenuAction!restaurantMenuDelete.do"/>
	<input type="hidden" id="editURL" value="restaurantMenuAction!getRestaurantMenuEdit.do"/>
	
		<div id="btn-option" style="padding-left: 10px;margin:0px;float: none;">
			<a class="add-btn"  id="add" 		href="javascript:void(0);" title="新增">新增</a>
			<a class="edit-btn" id="edit"       href="javascript:void(0);" title="修改">修改</a>
			<a class="del-btn"  id="delete"     href="javascript:void(0);" title="删除">删除</a>
		</div>
		
		<div id="search-btn-wapper" style="padding-left: 20px;margin-top: 10px">
			<label for="">菜单名称：</label>
			<input type="text" class="inputText" name="restaurantMenuBizBean.name" value="${restaurantMenuBizBean.name}" />
			<s:submit cssClass="btn"  method="getRestaurantMenus" id="btnEnter" value="查询" ></s:submit>
		</div>
       
        <div id="item-list">
			<table>
			   <thead>
			     <tr>
					<th>选择<input type="checkbox" id="selectAll" /></th>
					<th>菜单编号</th>
					<th>菜单名称</th>
					<th>菜单价格</th>
					<th>说明</th>
					<th>备注</th>
				 </tr>
			   </thead>
			   <tbody>
					<s:iterator value="restaurantMenuBizBeans" status="sta">
					<tr>
						<td><input type="checkbox" class="classCheckbox" name="restaurantMenuBizBeans[${sta.index}].id" value="${id}" /></td>
						<td><a href="<%=request.getContextPath() %>/dishes/dishesAction!getDishes.do?dishesBizBean.rmid=${id}&dishesBizBean.rmName=${name}&dishesBizBean.rid=${restaurantMenuBizBean.rid}">${rmno}</a></td>
						<td>${name}</td>
						<td>${menuPrice}</td>
						<td>${explanation}</td>
						<td>${remark}</td>
					</tr>
					</s:iterator>
					<s:if test="restaurantMenuBizBeans == null || restaurantMenuBizBeans.size == 0">
					    <tr>
					       <td colspan="6"><span class="spanRB">数据暂无!</span></td>
					    </tr>
					</s:if>
				</tbody>
			</table>
		</div>
    </s:form>
	<d:page namespace="/restaurantMenu" action="restaurantMenuAction!getRestaurantMenus">
	</d:page>
</body>
</html>